<div class="col-md-9 department-log" style="display:none">
	<div style="width:100%;height:90px;"></div>
	<div class="panel panel-default" style="margin-top:10px;">
		<div class="panel-heading">
		  <h4 class="panel-title">
			<a class="accordion-toggle data-parent="#accordion">部门日志</a>
			<select id="select_viewlog_method" class="pull-right">
				<option value="0">查看方式</option>
				<option value="1">周日志</option>
			</select>
			<select id="select_departmentlog_id" class="pull-right" style="width:30%;margin-right:10px">
				<option value="-2">选择部门</option>
				<volist name="department" id="vo">
				<option value="{$vo.department_id}">{$vo.department_name}</option>
				</volist>
			</select>
		  </h4>
		</div>
		<div class="panel-collapse in department-logs">
		  <div class="panel-body department-log-list">
		  
			<input type="text" class="form-control" id="datepicker" style="width:30%;margin-bottom:15px;display:inline-block"/>
			<input type="button" class="btn btn-primary" department-id="" view-method="" id="search-by-datepicker" value="搜索" style="margin-top:-15px">
			<div class="worker-worklog-list">
				<div class="panel-group worker-worklog-contents" id="accordion">
					<volist name="list" id="vo">
						<div class="panel panel-default">
							<div class="panel-heading">
							  <h4 class="panel-title">
								<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapse{$vo.department_id}" style="display:block;width:100%;text-decoration:none">{$vo.department_name}</a>
							  </h4>
							</div>
							<div id="collapse{$vo.department_id}" class="panel-collapse collapse in">
							  <div class="panel-body">
								<if condition="$vo.worker_list eq NULL">
								<h4 style="text-align:center"><span class="label label-primary">该部门暂无成员</span></h4>
								<else />
								<ul class="list-group">
									<volist name="vo.worker_list" id="worker">
									<li class="list-group-item"><a>{$worker.name}
										<if condition="$worker.worklog_list eq NULL">
											(没有写日志)</a></li>
										<else />
											</a></li>
											<ul class="nav nav-pills nav-stacked">
												<volist name="worker.worklog_list" id="worklog">
													<li class="tooltips" data-placement="top" data-toggle="tooltip" data-original-title="点击查看详细内容及留言">
														<a href="javascript:_MP('{$worklog.worklog_id}','__APP__/Comment/commentList')">
															<i class="glyphicon glyphicon-arrow-right"></i>
															<span class="work-log-title{$worklog.worklog_id}">
																<if condition="$worklog.title eq ''">
																无标题
																<else />
																{$worklog.title}
																</if>
															</span>
															<span class="pull-right">发表于:<i>{$worklog.create_time}</i></span>
															<span class="hide work-log-content{$worklog.worklog_id}">{$worklog.work}</span>
														</a>
													</li>
												</volist>
											</ul>
										</if>
									</volist>
								</ul>
								</if>
							  </div>
							</div>
						</div>
					</volist>
				</div>
			</div>
		  </div>
		</div>
	</div>
</div>
<script>
	$(function(){
		$(".tooltips").tooltip();
		$(".date-picker-wp").remove();
		new DatePicker('date', {inputId: 'datepicker', className: 'date-picker-wp',seprator: '-'});
	});
</script>